package business.database.sqliteMaescorp;

/**
 * Factoria abstracta para los DAO de sqlite
 * @author Administrador
 *
 */
public class AbsSqliteDAOFactory {

	private static AbsSqliteDAOFactory _instance;
	
	/**
	 * TODO: hacer thread safe
	 * @return instancia unica
	 */
	public static AbsSqliteDAOFactory getInstance() {
		if (_instance == null) _instance = new AbsSqliteDAOFactory();
		
		return _instance;
	}
	
	private AbsSqliteDAOFactory() {
		
	}
	
	public CorpftsDAO getCorpftsDAO() {
		return new CorpftsDAO();
	}
	
	public ContextcorpftsDAO getContextcorpftsDAO() {
		return new ContextcorpftsDAO();
	}
	
	public ContextcorpgroupftsDAO getContextcorpgroupftsDAO() {
		return new ContextcorpgroupftsDAO();
	}
	
}
